<?php
/*
	tham so:
		$width
		$height
		$title
		$data		chuoi html se hien thi trong form hoc du lieu se duoc truyen vao subview
		$subview
*/
?>

<table 
<?php 
	
	if(isset($width))
		echo "width=\"$width\""
?> border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="8" height="25" background="image/task1.gif"></td>
                        <td width="*" align="center" background="image/task2.gif" class="formHeader">
                        	<?php
								if(isset($title))
								{
									echo $title;
								}
							?>
                        </td>
                        <td width="8" background="image/task3.gif"></td>
                      </tr>
                      <tr>
                        <td <?php if(isset($height)){echo "height=\"$height\"";}?> width="8" background="image/task4.gif"></td>
                        <td background="image/task5.gif">
								
								<?php
									if(isset($subview))
									{
										$CI = &get_instance();
										if(isset($data))
											$CI->load->view($subview, $data);
										else
											$CI->load->view($subview);
									}
									else if(isset($data))
										echo $data;
								?>								
						</td>
                        <td background="image/task6.gif" style="width: 8px"></td>
                      </tr>
                      <tr>
                        <td height="9" width="8" background="image/task7.gif"></td>
                        <td height="9" background="image/task8.gif"></td>
                        <td height="9" background="image/task9.gif" style="width: 8px"></td>
                      </tr>
</table> 
<?php
unset($width);
unset($height);
unset($title);
unset($data);
unset($subview);
?>